
public class Expression {
	ConditionalAndExpr cae;
	Expression2 exp2;
	
	public Expression( ConditionalAndExpr cae, Expression2 exp2){
		this.cae = cae;
		this.exp2 = exp2;
	}
	public String toString(){
		String ret = "";

		String s = "";
		if (cae != null) {
			s +=  cae.toString();
		}
		if (exp2 != null) {
			s +=  "OR"+exp2.toString();
		}
		
		return ret+s;
	}
	public void check() throws SemanticException {
		// TODO
		if (exp2 != null) {
			//System.out.println("in EXP 1");
			exp2.check();
		}
		if (cae != null) {
			//System.out.println("in EXP 2");
			cae.check();
		}
	}
}
